<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;


class EnrolPresenter extends Presenter
{

    public function enrolStatus()
    {
        switch ($this->status) {
            case 1:
                return '<span class="brown">报名</span>';
                break;
            case 2:
                return '<span class="green">录取</span>';
                break;
            case 0:
                return '<span class="red">未录取</span>';
                break;
            default:
                break;
        }

    }


    public function enrolSource()
    {
        switch ($this->source) {
            case 1:
                return '<span class="green bigger-110"><i class="ace-icon fa fa-weixin"></i></span>';
                break;
            case 2:
                return '<span class="blue"><i class="ace-icon fa fa-internet-explorer"></i></span>';
                break;
            default:
                break;
        }

    }


}
